$(function() {
		
		var index = $("#status").val();
		$("#div_usemessage_status a:eq(" + index + ")").addClass("aon");
	
		// 按状态搜索
		$("#div_usemessage_status a").click(function() {
					var i  = $(this).index();
					var status = i -1;
					$("#div_usemessage_status a").removeClass("aon");
					$("#status").val(status);
					$("#query_order_form").submit();
					return false;
				});
});

// 异步加载分页数据
function loadEachPageItemInfo(pageNum) {
	$.post("usercenter/usermessage/page?t=" + Math.random(), {
				page : pageNum,
				totalResults : Number($("#totalItemsSize").val()),
				"status" : $("#status").val()
			}, function(data) {
				$("#div_page_container").empty().html(data);
			});
}
